package org.zhou.springbootstudy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

@Controller
public class thymeleafController {
        @RequestMapping("/test")
    public String test(Model model){
            model.addAttribute("msg","<h1>hello thymeleaf</h1>");
            model.addAttribute("users", Arrays.asList("zhou","zhangsan","lisi"));


            return "test";
        }

}
